package com.yuandian.api.business_monitor.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.yuandian.po.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * <p>
 * 业务
 * </p>
 *
 * @author fucx
 * @since 2020-09-14
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class SynchronousBusiness extends BaseEntity {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 同步业务编码
     */
    private String resourceCoding;

    /**
     * 资源名称
     */
    private String name;

    /**
     * 首步骤业务资源编码
     */
    private String firstSingleResourceCoding;

    /**
     * 尾步骤业务资源编码
     */
    private String tailSingleResourceCoding;

    /**
     * 发现时间
     */
    private Date startTime;

    /**
     * 确认状态 0：否 1：是
     */
    private Integer isStatus;

    /**
     * 是否启用 0：否 1：是
     */
    private Integer whetherEnable;

    /**
     * 资源类型
     */
    private String resourceType;

    private Date confirmTime;

    /**
     * 创建人
     */
    private String confirmPeople;

    /**
     * 取样数据开始时间
     */
    private Date beginTime;

    /**
     * 修改人
     */
    private String modifier;

    /**
     * 取样数据结束时间
     */
    private Date endTime;

    /**
     * 人工配的首端url
     */
    private String beginUrl;

    /**
     * 人工配的末端url
     */
    private String endUrl;

    /**
     * 应用系统编码
     */
    private String systemCode;

    /**
     * 累计量阈值
     */
    private Integer thresholdAmount;

    /**
     * 业务过程学习状态,-1:停止状态，0：初始化状态，1：首末端匹配完成，2：业务学习完成，3：学习过程确认
     */
    private Boolean processStudyState;

    /**
     * 业务过程学习状态,-1:停止状态，0：初始化状态，1：首末端匹配完成，2：业务学习完成，3：学习过程确认
     */
    private int processStudyStateInt;

    /**
     * 业务过程置信度阈值
     */
    private String businessCredibility;

    /**
     * 加载项置信度阈值
     */
    private String loadItemCredibility;

    /**
     * 端到端关联置信度阈值
     */
    private String segmentCredibility;

    /**
     * 业务步骤设置
     */
    private String stepSet;

    /**
     * 效率分析阈值（效率分析专用）
     */
    private String efficiencyThreshold;

    /**
     * 学习次数
     */
    private String studyCount;

    /**
     * 学习次数阀值
     */
    private Integer studyNumThreshold;

    /**
     * 学习次数
     */
    private Integer studyNum;

    /**
     * 是否为关键业务0:否1:是
     */
    private Integer keyBusiness;

    /**
     * 显示顺序
     */
    private Integer showOrder;

    private int rowNum;

    /**
     * 高频阈值a
     */
    private Integer haighFrequencyThreashold;

    @Override
    public String toString() {
        return "SynchronousBusiness{" +
        "id=" + id +
        ", resourceCoding=" + resourceCoding +
        ", name=" + name +
        ", firstSingleResourceCoding=" + firstSingleResourceCoding +
        ", tailSingleResourceCoding=" + tailSingleResourceCoding +
        ", startTime=" + startTime +
        ", isStatus=" + isStatus +
        ", whetherEnable=" + whetherEnable +
        ", resourceType=" + resourceType +
        ", confirmTime=" + confirmTime +
        ", confirmPeople=" + confirmPeople +
        ", beginTime=" + beginTime +
        ", modifier=" + modifier +
        ", endTime=" + endTime +
        ", beginUrl=" + beginUrl +
        ", endUrl=" + endUrl +
        ", systemCode=" + systemCode +
        ", thresholdAmount=" + thresholdAmount +
        ", processStudyState=" + processStudyState +
        ", businessCredibility=" + businessCredibility +
        ", loadItemCredibility=" + loadItemCredibility +
        ", segmentCredibility=" + segmentCredibility +
        ", stepSet=" + stepSet +
        ", efficiencyThreshold=" + efficiencyThreshold +
        ", studyCount=" + studyCount +
        ", studyNumThreshold=" + studyNumThreshold +
        ", studyNum=" + studyNum +
        ", keyBusiness=" + keyBusiness +
        ", showOrder=" + showOrder +
        "}";
    }
}
